import Vue from 'vue'
import App from './App.vue'
import router from './route/index'
import './utils/lib-flexible/flexible'
// import scroll from 'vue-seamless-scroll'
import "animate.css"
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueLazyload from 'vue-lazyload'

import { Pagination, Carousel, CarouselItem } from 'element-ui';

if (process.env.NODE_ENV === 'production') {
    //开发环境下的执行操作
    axios.defaults.baseURL = "http://hz.xinfangvip.com"
} else if (process.env.NODE_ENV === 'development') {
    //测试环境下的执行操作
    axios.defaults.baseURL = "/"
} else {
    //生产环境下的执行操作
}

Vue.use(Pagination)
Vue.use(Carousel)
Vue.use(CarouselItem)
Vue.use(VueLazyload)
Vue.config.productionTip = false
Vue.prototype.$axios = axios

new Vue({
    render: h => h(App),
    router
}).$mount('#app')